package io.github.gszj2018.jp_analysis;

public class Logger {

    private static final Logger INSTANCE = new Logger();

    private boolean logging = false;

    private Logger() {
    }

    public static Logger v() {
        return INSTANCE;
    }

    public void setLogging(boolean logging) {
        this.logging = logging;
    }

    public void log(String msg) {
        if (logging) {
            System.err.println(">>>: " + msg);
        }
    }
}
